package yz.com.javautil.date;

/**
 * @author Administrator
 */
public class DateTimeGet {
    public static void main(String[] args) {
        int interval = 10;
        String time = "12:20:24";
        String hourStr = time.substring(0, 2);
        String minStr = time.substring(3, 5);
        int minInt = Integer.parseInt(minStr);

        int i = minInt / interval;
        minInt = i * interval;

        System.out.println(hourStr);
        System.out.println(minStr);
        System.out.println(minInt);
    }
}
